package model;

public class Bag {
    private int id;
    private String type;
    private int price;
    private String stringPrice;

    public Bag(int id, String type, int price) {
        this.type = type;
        this.id = id;
        this.price = price;
    }

    public Bag(int id, String type, String price) {
        this.type = type;
        this.id = id;
        this.stringPrice = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
        this.stringPrice = Integer.toString(price);
    }

    public void setPrice(String price) {
        this.stringPrice = price;
    }

    public int getIntPrice() {
        return price;
    }

    public String getStringPrice() {
        return stringPrice;
    }
}
